Improve cross-compile support
authorHelmut Grohne <helmut@subdivi.de>
Tue, 5 Jan 2021 21:25:00 +0000 (22:25 +0100)
committerNoah Meyerhans <noahm@debian.org>
Sun, 10 Mar 2024 06:31:22 +0000 (22:31 -0800)
commitd0dd7ddf65bba4c7cb9e7c3c4c5e6cbe455fb95f
tree00086ea09afa600fc621688d07368a54ad9358a7
parent2edcc072dc092e28a6eb91052cd0864d8903125e
Improve cross-compile support

The check for the signedness of size_t really doesn't have to be run as
that is a compile time property.

Beyond that, dovecot uses mysql_config. I've looked into that and
mysql_config is unfixably broken during cross builds. It will not be
fixed. Instead, please use pkg-config. My patch implements that with a
fallback to mysql_config to avoid breaking other users.

Last but not least, src/lib-lua/Makefile.am adds $(LUA_LIBS) to
libdovecot_lua_la_DEPENDENCIES. As it happens, LUA_LIBS contains a -L
flag and when that flag shows up in a dependency, make gives up. I have
no clue why one would add LUA_LIBS to DEPENDENCIES as it already is
being correctly added to LIBADD. My patch suggests to quite simply drop
that.

Gbp-Pq: Name Improve-cross-compile-support.patch
m4/want_mysql.m4
src/lib-lua/Makefile.am